import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/mes-admin/excelExport/pageTask',
    method: 'GET',
    params: {
      ...params,
      current,
      size
    }
  });
};

export const downLoadFile = (data) => {
  return request({
    url: '/api/blade-resource/attach/read-attach',
    method: 'post',
    data,
    responseType: 'blob'
  });
};

export const readerText = (data) => {
  return request({
    url: '/api/blade-resource/attach/read-attach',
    method: 'post',
    data
  });
};
